//
//  MBHUDDIY.m
//  微著商城_OC
//
//  Created by rimi on 16/9/6.
//  Copyright © 2016年 Lynn. All rights reserved.
//

#import "MBHUDDIY.h"

@implementation MBHUDDIY

static MBHUDDIY *mb =  nil;
- (void)show{
    [[UIApplication sharedApplication].keyWindow addSubview:self];
    [self showAnimated:YES];
}

- (void)stop{
    [self hideAnimated:YES];
    [self removeFromSuperview];
}
+ (MBHUDDIY *)getInstent{
    if (!mb) {
        mb = [[MBHUDDIY alloc]initWithView:[UIApplication sharedApplication].keyWindow];
        mb.bezelView.color = [UIColor blackColor];
    
        mb.contentColor = [UIColor whiteColor];
    }
    return mb;
}
@end
